package com.atguigu.gulimall.order.web;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.service.OrderService;
import com.atguigu.gulimall.order.vo.OrderConfirmVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class WebOrderController {

    @Autowired
    OrderService orderService;

    @GetMapping("/orderInfo")
    public R orderInfo(){
        OrderConfirmVo vo = orderService.confirmOrder();
        return R.ok().put("data",vo);
    }

}
